<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( $this->header ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="detail_name">
					<?php echo JText::_( 'Название' ); ?>:
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="detail_name" id="detail_name" size="32" maxlength="250" value="<?php echo $this->detail->detail_name;?>" />
			</td>
		</tr>
		
		<tr>
			<td width="100" align="right" class="key">
				<label for="detail_description">
					<?php echo JText::_( 'Description' ); ?>:
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="detail_description" id="detail_description" size="32" maxlength="250" value="<?php echo $this->detail->detail_description;?>" />
			</td>
		</tr>
		
		<tr>
			<td width="100" align="right" class="key" valign="top">
				<label for="detail_name">
					<?php echo JText::_( 'Краткий текст' ); ?>:
				</label>
			</td>
			<td>
				<textarea name="detail_short_text" style="width:500px"><?php echo $this->detail->detail_short_text; ?></textarea>
			</td>
		</tr>
		
	</table>
	</fieldset>
	
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Полный текст'  ); ?></legend>
		<?
			$editor = &JFactory::getEditor();
		?>
		<table cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color:white;border-width:0px">
		<tr>
			<td valign="top">
				<table class="adminform">
				<tr>
					<td>
						<?php
						// parameters : areaname, content, width, height, cols, rows
						echo $editor->display( 'detail_text',  $this->detail->detail_text , '100%', '550', '75', '20' ) ;
						?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_targets" />
<input type="hidden" name="id" value="<?php echo $this->detail->id; ?>" />
<input type="hidden" name="type_id" value="<?php echo $this->detail->type_id; ?>" />
<input type="hidden" name="target_id" value="<?php echo $this->detail->target_id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="details1" />
</form>
